package entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Author Su
 * @Date 2025/4/30 22:41
 * @Version 1.0 （版本号）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleComment {
    private Long id;
    private Long articleId;
    private Long userId;
    private User author; // 关联用户信息
    private Long parentId;
    private Long rootId;
    private String content;
    private Integer likeCount;
    private Boolean isDeleted;
    private Date createdAt;
    private Date updatedAt;
    private List<ArticleComment> replies; // 子评论
}
